<?php
/**
 * @filesource:					GroupModel.class.php
 * @desc:						模块分组管理模型类
 * 
 * @author:						houyining
 * @copyright:					hou.yining@gmail.com
 * @date:						2011-04-07
 */

class GroupModel extends Model{
	protected $_map = array(
	);
	
	protected $_validate = array(
		array('name','require', '分组名必须！'),
		array('title', 'require', '分组标题必须！'),
		array('sort', 'require', '排序必须！'),
		array('sort', 'number', '排序值必须为数字！'),
	);
	
	protected $_auto = array(
		array('status', 1),
		array('create_time', 'time', Model::MODEL_INSERT, 'function'),
		array('update_time', 'time', Model::MODEL_UPDATE, 'function'),
	);
}

?>